# 计算每个班级学生总成绩
score = [[98, 78, 89], [89, 98, 78], [98, 78, 98], [78, 98, 87]]
i = 0
for j in score:
    print(j)
    i+= 1
    chengji = 0
    for n in j:
        chengji += n
    print("第%d个班级的成绩是%d" % (i, chengji))
